package com.atguigu.exam.controller;

public class StringDemo {
    public static void main(String[] args) {
        String content = "```哈哈哈```";
        int start = content.indexOf("```宇");
        System.out.println("start = " + start);
        int end = content .lastIndexOf("```");
        System.out.println("end = " + end);

        String substring = content.substring(start + 3, end);
        System.out.println("substring = " + substring);

    }
}
